﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BusinessEntities.Model
{
    public class Invite
    {
        [Key]
        public int ID { get; set; }
        public int AdditionalInvitedGuests { get; set; }
        /// <summary>
        /// The amount of guests that have already RSVP'd. 
        /// Cannot be greater than AdditionalInvitedGuests + 2.
        /// </summary>
        public int ReservedGuests { get; set; }
        public bool RSVPd { get; set; }

        public string Hash { get; set; }

        public int EventID { get; set; }
        public virtual Event Event { get; set; }


        public int GuestID { get; set; }
        public virtual Guest Guest { get; set; }


        public int? GiftID { get; set; }
        public virtual Gift Gift { get; set; }
    }
}
